package com.lc.cehui.ui.fragment.home;

import android.widget.TextView;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.lc.cehui.R;
import com.lc.cehui.app.AppFragment;
import com.lc.cehui.http.response.CompanyMeetShowBean;
import com.lc.cehui.other.IntentKey;
import com.lc.cehui.ui.activity.home.ExhibitionDetailsActivity;
import com.lc.cehui.util.SPUtil;

import butterknife.BindView;

public class ExhibitionRangeFragment extends AppFragment<ExhibitionDetailsActivity> {
        @BindView(R.id.tv_text)
        TextView tvText;
@Override
protected int getLayoutId() {
        return R.layout.fragment_exhibitionrange;
        }

@Override
protected void initView() {

        }

@Override
protected void initData() {
        Gson gson = new Gson();
//                将存储的数据转成实体类
        CompanyMeetShowBean data = gson.fromJson(SPUtil.get(getContext(), IntentKey.TEXT,""), new TypeToken<CompanyMeetShowBean>() {
        }.getType());
        tvText.setText(data.getData().getExhibition_range());
        }
}
